-
Home
-
Jetpack Protect
-
1.2.0
-
Code
-
Classes
- Waf_Runner
Total Complexity |
75 |
Dependencies |
11 |
Dependents |
5 |
Total lines |
595 |
Lines of code |
304 |
Logical lines of code |
182 |
Comment lines |
193 |
Methods |
27 |
Properties |
0 |
Methods 27
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
generate_rules() |
A |
47 |
9 |
35 |
run() |
S |
53 |
6 |
23 |
generate_ip_rules() |
S |
49 |
5 |
29 |
is_supported_environment() |
S |
62 |
6 |
12 |
initialize() |
S |
60 |
5 |
16 |
get_rules_from_api() |
S |
53 |
4 |
23 |
create_waf_directory() |
S |
61 |
4 |
13 |
activate() |
S |
59 |
3 |
16 |
update_rules_if_changed() |
S |
62 |
3 |
12 |
ip_option_to_array() |
S |
62 |
3 |
11 |
initialize_filesystem() |
S |
66 |
3 |
8 |
get_waf_file_path() |
S |
67 |
2 |
7 |
add_hooks() |
S |
62 |
2 |
10 |
create_blocklog_table() |
S |
61 |
1 |
15 |
deactivate() |
S |
65 |
2 |
9 |
update_rules_cron() |
S |
66 |
2 |
9 |
is_enabled() |
S |
71 |
2 |
6 |
define_mode() |
S |
71 |
2 |
6 |
is_allowed_mode() |
S |
64 |
2 |
10 |
define_share_data() |
S |
70 |
2 |
6 |
get_bootstrap_file_path() |
S |
76 |
1 |
4 |
errorHandler() |
S |
89 |
1 |
2 |
did_run() |
S |
80 |
1 |
3 |
get_config() |
S |
66 |
1 |
9 |
disable() |
S |
79 |
1 |
3 |
enable() |
S |
78 |
1 |
3 |
update_waf() |
S |
77 |
1 |
4 |